package com.ketan.chameleonmuseum.ui.home

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.ketan.chameleonmuseum.ui.base.AddUtil.Companion.logMethodInfo
import com.uxhuanche.recyceler.KKRecyclerFragment

class HomeFragment : KKRecyclerFragment() {

    private val TAG = "HomeFragment"

    private lateinit var homeViewModel: HomeViewModel

//    override fun onCreateView(
//            inflater: LayoutInflater,
//            container: ViewGroup?,
//            savedInstanceState: Bundle?
//    ): View? {
////        homeViewModel =
////                ViewModelProviders.of(this).get(HomeViewModel::class.java)
//        val root = inflater.inflate(R.layout.fragment_home, container, false)
//        val textView: TextView = root.findViewById(R.id.text_home)
////        homeViewModel.text.observe(viewLifecycleOwner, Observer {
////            textView.text = it
////        })
//        return root
//    }

    override fun onFragmentCreated(p0: View?) {
        //nothing
    }


    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        logMethodInfo()
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        logMethodInfo()
    }

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        logMethodInfo()
        return super.onCreateView(inflater, container, savedInstanceState)
    }

    override fun onPause() {
        super.onPause()
        logMethodInfo()
    }

    override fun onDestroyView() {
        super.onDestroyView()
        logMethodInfo();
    }

    override fun onDestroy() {
        super.onDestroy()
        logMethodInfo()
    }



}